/**
 * 零基础学C语言
 * 
 * @version 1st
 * @author 明日科技
 * @see http://www.mingrisoft.com
 */

#include <stdio.h>

int main() {
    int iCelsius, iFahrenheit;

    printf("Please enter temperature : \n");
    scanf("%d", &iFahrenheit);

    iCelsius = 5 * (iFahrenheit - 32) / 9;

    printf("Temperature is : ");
    printf("%d", iCelsius);
    printf(" degrees Celsius\n");
    
    return 0;
}

/*
output:
Please enter temperature : 
80
Temperature is : 26 degrees Celsius
*/